package cn.stylefeng.guns.modular.wms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:31
 * @version 1.0
 */
/**
    * wms中心的采购入库单
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wms_purchase_input_order")
public class WmsPurchaseInputOrderEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 采购单id
     */
    @TableField(value = "purchase_order_id")
    private Long purchaseOrderId;

    /**
     * 供应商ID
     */
    @TableField(value = "supplier_id")
    private Long supplierId;

    /**
     * 预计到货时间
     */
    @TableField(value = "expect_arrival_time")
    private Date expectArrivalTime;

    /**
     * 实际到货时间
     */
    @TableField(value = "actual_arrival_time")
    private Date actualArrivalTime;

    /**
     * 采购联系人
     */
    @TableField(value = "purchase_contactor")
    private String purchaseContactor;

    /**
     * 采购联系电话
     */
    @TableField(value = "purchase_contactor_phone_number")
    private String purchaseContactorPhoneNumber;

    /**
     * 采购联系邮箱
     */
    @TableField(value = "purchase_contactor_email")
    private String purchaseContactorEmail;

    /**
     * 采购单的说明备注
     */
    @TableField(value = "purchase_order_remark")
    private String purchaseOrderRemark;

    /**
     * 采购员
     */
    @TableField(value = "purchaser")
    private String purchaser;

    /**
     * 采购入库单状态，1：编辑中，2：待审核，3：已入库，4：待结算，5：已完成
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PURCHASE_ORDER_ID = "purchase_order_id";

    public static final String COL_SUPPLIER_ID = "supplier_id";

    public static final String COL_EXPECT_ARRIVAL_TIME = "expect_arrival_time";

    public static final String COL_ACTUAL_ARRIVAL_TIME = "actual_arrival_time";

    public static final String COL_PURCHASE_CONTACTOR = "purchase_contactor";

    public static final String COL_PURCHASE_CONTACTOR_PHONE_NUMBER = "purchase_contactor_phone_number";

    public static final String COL_PURCHASE_CONTACTOR_EMAIL = "purchase_contactor_email";

    public static final String COL_PURCHASE_ORDER_REMARK = "purchase_order_remark";

    public static final String COL_PURCHASER = "purchaser";

    public static final String COL_STATUS = "status";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}